package com.llly.pojo;

import java.io.Serializable;
import java.util.List;

public class Easybuy_product_category implements Serializable {
    //`id``name``parentId``type``iconClass``isdelete`
    private Integer id;//主键
    private String name;//名称
    private Integer parentId;//父级目录id
    private Integer type;//级别(1:一级 2：二级 3：三级)
    private String iconClass;//图标
    private Integer isdelete;//是否删除(1：删除 0：未删除)
    private List<Easybuy_product_category> proList;  //2级分类
    private List<Easybuy_product>  pros;   //三级分类下商品
    private Easybuy_product_category pname;  //用于存上级分类

    public void setPname(Easybuy_product_category pname) {
        this.pname = pname;
    }

    public Easybuy_product_category getPname() {
        return pname;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getIconClass() {
        return iconClass;
    }

    public void setIconClass(String iconClass) {
        this.iconClass = iconClass;
    }

    public Integer getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(Integer isdelete) {
        this.isdelete = isdelete;
    }

    public void setProList(List<Easybuy_product_category> proList) {
        this.proList = proList;
    }

    public void setPros(List<Easybuy_product> pros) {
        this.pros = pros;
    }

    public List<Easybuy_product_category> getProList() {
        return proList;
    }

    public List<Easybuy_product> getPros() {
        return pros;
    }

    @Override
    public String toString() {
        return "Easybuy_product_category{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", parentId=" + parentId +
                ", type=" + type +
                ", iconClass='" + iconClass + '\'' +
                ", isdelete=" + isdelete +
                ", proList=" + proList +
                ", pros=" + pros +
                '}';
    }
}
